﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace lingopen.Application.CRM
{
    public class AddOrUpdateCustomerInputBase : ValidationModel
    {
        [RequiredAttribute(ErrorMessage = "编号不能为空")]
        public string Code { get; set; }
        [RequiredAttribute(ErrorMessage = "名称不能为空")]
        public string Name { get; set; }
        public string Telephone { get; set; }
        public bool IsEnabled { get; set; }
        [RequiredAttribute(ErrorMessage = "未选择PMS")]
        public string PMSId { get; set; }
       
        public string Description { get; set; }
    }
    public class AddOrUpdatePMSInputBase : ValidationModel
    {
        [RequiredAttribute(ErrorMessage = "编号不能为空")]
        public string Code { get; set; }
        [RequiredAttribute(ErrorMessage = "名称不能为空")]
        public string Name { get; set; } 
        public bool IsEnabled { get; set; }
        public string Description { get; set; }
    }
}
